import { IUser } from '@src/libcommon/modules/user';
import { Response, Request, NextFunction } from 'express';


// **** Express **** //

type TObj = Record<string, unknown>;
export type IReq = Request<TObj, void, TObj, TObj> & {
    user?: IUser,
    userId?: number,
};
export type IRes = Response<unknown, TObj>
export type INext = NextFunction;


// **** Types **** //
export type IBody<T = unknown> = Record<string, T>;
  
export type IQuery<T = unknown> = Record<string, T>;
export type IParams<T = unknown> = Record<string, T>;

